package handler

import (
	"quant/backend/api/response"

	"github.com/gin-gonic/gin"
)

type indexHandler struct {
}

func NewIndexHandler() *indexHandler {
	return &indexHandler{}
}

// Index
// @Summary ping
// @Tags 测试接口
// @Accept json
// @Produce json
// @Success 200 {object} dto.ResponseDto "成功"
// @Failure 500 {object} dto.ResponseDto "失败"
// @Router /ping [get]
func (h *indexHandler) Index(ctx *gin.Context) {
	response.Success(ctx, "pong")
}
